//
//  UIDevice+Memory.h
//  MexicoLoan
//
//  Created by wxp on 2025/3/1.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIDevice (Memory)

+ (NSString *)totalDiskSpaceInGB;

+ (NSString *)totalDiskSpaceInMB;

+ (NSString *)freeDiskSpaceInGB;

+ (NSString *)freeDiskSpaceInMB;

+ (NSString *)usedDiskSpaceInGB;

+ (NSString *)usedDiskSpaceInMB;

+ (NSString *)MBFormatter:(long long)byte;

+ (long)totalDiskSpaceInBytes;

+ (long)freeDiskSpaceInBytes;

+ (long)usedDiskSpaceInBytes;


// 不活动内存
+ (long long)inactiveMemoryInBytes;

// 保留内存
+ (long long)wiredMemoryInBytes;

// 已用内存
+ (long long)usedMemoryInBytes;

// 活动内存
+ (long long)activeMemoryInBytes;

// 可用内存
+ (long long)freeMemoryInBytes;

// 可清理内存
+ (long long)cleanableMemoryInBytes;

@end

NS_ASSUME_NONNULL_END
